<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->
<div class="ui-grid-paging ui-helper-clearfix">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url(array('page' => $this->previous)); ?>"
   class="ui-grid-paging-prev ui-state-default ui-corner-left">
    <span class="ui-icon ui-icon-triangle-1-w" title="previous set of results"></span>
  </a> 
<?php else: ?>
<div class="ui-grid-paging-prev ui-state-disabled ui-corner-left">
<span class="ui-icon ui-icon-triangle-1-w" title="previous set of results"></span>
</div>
<?php endif; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url(array('page' => $this->next)); ?>"  class="ui-grid-paging-next ui-state-default ui-corner-right">
    <span class="ui-icon ui-icon-triangle-1-e" title="next set of results"></span>
  </a>
<?php else: ?>
<div class="ui-grid-paging-prev ui-state-disabled ui-corner-left">
<span class="ui-icon ui-icon-triangle-1-e" title="next set of results"></span>
</div>
<?php endif; ?>
</div>



<div class="ui-grid-results">
<?php if ($this->pageCount): ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>

    <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> 

  <?php else: ?>

    <?php echo $page; ?>
  
  <?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>

